home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2004 August / CyberMycha 08-2004 (Poland).bin / Spiderman2 / MainApp.cab / GUI.u / GUIComponent_CppText.TextBuffer < prev    next >
Unknown  |  2004-01-13  |  1.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 6e 1e 09 09 76 69 72 74 |........|n...virt|
|00000010| 75 61 6c 20 76 6f 69 64 | 20 50 72 65 44 72 61 77 |ual void| PreDraw|
|00000020| 28 55 43 61 6e 76 61 73 | 20 2a 43 61 6e 76 61 73 |(UCanvas| *Canvas|
|00000030| 29 3b 09 2f 2f 20 53 68 | 6f 75 6c 64 20 62 65 20 |);.// Sh|ould be |
|00000040| 6f 76 65 72 72 69 64 64 | 65 6e 20 69 6e 20 61 20 |overridd|en in a |
|00000050| 73 75 62 63 6c 61 73 73 | 0d 0a 09 09 76 69 72 74 |subclass|....virt|
|00000060| 75 61 6c 20 76 6f 69 64 | 20 44 72 61 77 28 55 43 |ual void| Draw(UC|
|00000070| 61 6e 76 61 73 2a 20 43 | 61 6e 76 61 73 29 3b 09 |anvas* C|anvas);.|
|00000080| 09 2f 2f 20 53 68 6f 75 | 6c 64 20 62 65 20 6f 76 |.// Shou|ld be ov|
|00000090| 65 72 72 69 64 64 65 6e | 20 69 6e 20 61 20 73 75 |erridden| in a su|
|000000a0| 62 63 6c 61 73 73 0d 0a | 0d 0a 09 09 76 69 72 74 |bclass..|....virt|
|000000b0| 75 61 6c 20 55 42 4f 4f | 4c 20 50 65 72 66 6f 72 |ual UBOO|L Perfor|
|000000c0| 6d 48 69 74 54 65 73 74 | 28 49 4e 54 20 4d 6f 75 |mHitTest|(INT Mou|
|000000d0| 73 65 58 2c 20 49 4e 54 | 20 4d 6f 75 73 65 59 29 |seX, INT| MouseY)|
|000000e0| 3b 09 09 09 09 09 2f 2f | 20 43 68 65 63 6b 20 74 |;.....//| Check t|
|000000f0| 6f 20 73 65 65 20 69 66 | 20 61 20 6d 6f 75 73 65 |o see if| a mouse|
|00000100| 20 70 72 65 73 73 20 61 | 66 66 65 63 74 73 20 74 | press a|ffects t|
|00000110| 68 65 20 63 6f 6e 74 72 | 6f 6c 0d 0a 09 09 76 69 |he contr|ol....vi|
|00000120| 72 74 75 61 6c 20 76 6f | 69 64 20 20 55 70 64 61 |rtual vo|id Upda|
|00000130| 74 65 42 6f 75 6e 64 73 | 28 29 3b 09 09 09 09 09 |teBounds|();.....|
|00000140| 09 09 09 09 09 09 2f 2f | 20 55 70 64 61 74 65 73 |......//| Updates|
|00000150| 20 74 68 65 20 42 6f 75 | 6e 64 73 20 66 6f 72 20 | the Bou|nds for |
|00000160| 68 69 74 20 74 65 73 74 | 73 20 61 6e 64 20 73 75 |hit test|s and su|
|00000170| 63 68 0d 0a 09 09 76 69 | 72 74 75 61 6c 20 46 4c |ch....vi|rtual FL|
|00000180| 4f 41 54 20 41 63 74 75 | 61 6c 57 69 64 74 68 28 |OAT Actu|alWidth(|
|00000190| 29 3b 09 09 09 09 09 09 | 09 09 09 09 09 2f 2f 20 |);......|.....// |
|000001a0| 52 65 74 75 72 6e 73 20 | 74 68 65 20 61 63 74 75 |Returns |the actu|
|000001b0| 61 6c 20 77 69 64 74 68 | 20 28 69 6e 63 6c 75 64 |al width| (includ|
|000001c0| 69 6e 67 20 73 63 61 6c | 69 6e 67 29 20 6f 66 20 |ing scal|ing) of |
|000001d0| 61 20 63 6f 6d 70 6f 6e | 65 6e 74 0d 0a 09 09 76 |a compon|ent....v|
|000001e0| 69 72 74 75 61 6c 20 46 | 4c 4f 41 54 20 41 63 74 |irtual F|LOAT Act|
|000001f0| 75 61 6c 48 65 69 67 68 | 74 28 29 3b 09 09 09 09 |ualHeigh|t();....|
|00000200| 09 09 09 09 09 09 09 2f | 2f 20 52 65 74 75 72 6e |......./|/ Return|
|00000210| 73 20 74 68 65 20 61 63 | 74 75 61 6c 20 68 65 69 |s the ac|tual hei|
|00000220| 67 68 74 20 28 69 6e 63 | 6c 75 64 69 6e 67 20 73 |ght (inc|luding s|
|00000230| 63 61 6c 69 6e 67 29 20 | 6f 66 20 61 20 63 6f 6d |caling) |of a com|
|00000240| 70 6f 6e 65 6e 74 0d 0a | 09 09 76 69 72 74 75 61 |ponent..|..virtua|
|00000250| 6c 20 46 4c 4f 41 54 20 | 41 63 74 75 61 6c 4c 65 |l FLOAT |ActualLe|
|00000260| 66 74 28 29 3b 09 09 09 | 09 09 09 09 09 09 09 09 |ft();...|........|
|00000270| 09 2f 2f 20 52 65 74 75 | 72 6e 73 20 74 68 65 20 |.// Retu|rns the |
|00000280| 61 63 74 75 61 6c 20 6c | 65 66 74 20 28 69 6e 63 |actual l|eft (inc|
|00000290| 6c 75 64 69 6e 67 20 73 | 63 61 6c 69 6e 67 29 20 |luding s|caling) |
|000002a0| 6f 66 20 61 20 63 6f 6d | 70 6f 6e 65 6e 74 0d 0a |of a com|ponent..|
|000002b0| 09 09 76 69 72 74 75 61 | 6c 20 46 4c 4f 41 54 20 |..virtua|l FLOAT |
|000002c0| 41 63 74 75 61 6c 54 6f | 70 28 29 3b 09 09 09 09 |ActualTo|p();....|
|000002d0| 09 09 09 09 09 09 09 09 | 2f 2f 20 52 65 74 75 72 |........|// Retur|
|000002e0| 6e 73 20 74 68 65 20 61 | 63 74 75 61 6c 20 74 6f |ns the a|ctual to|
|000002f0| 70 20 28 69 6e 63 6c 75 | 64 69 6e 67 20 73 63 61 |p (inclu|ding sca|
|00000300| 6c 69 6e 67 29 20 6f 66 | 20 61 20 63 6f 6d 70 6f |ling) of| a compo|
|00000310| 6e 65 6e 74 0d 0a 09 09 | 76 69 72 74 75 61 6c 20 |nent....|virtual |
|00000320| 76 6f 69 64 20 20 53 61 | 76 65 43 61 6e 76 61 73 |void Sa|veCanvas|
|00000330| 53 74 61 74 65 28 55 43 | 61 6e 76 61 73 2a 20 43 |State(UC|anvas* C|
|00000340| 61 6e 76 61 73 29 3b 09 | 09 09 09 09 09 09 2f 2f |anvas);.|......//|
|00000350| 20 53 61 76 65 20 74 68 | 65 20 63 75 72 72 65 6e | Save th|e curren|
|00000360| 74 20 73 74 61 74 65 20 | 6f 66 20 74 68 65 20 63 |t state |of the c|
|00000370| 61 6e 76 61 73 0d 0a 09 | 09 76 69 72 74 75 61 6c |anvas...|.virtual|
|00000380| 20 76 6f 69 64 20 20 52 | 65 73 74 6f 72 65 43 61 | void R|estoreCa|
|00000390| 6e 76 61 73 53 74 61 74 | 65 28 55 43 61 6e 76 61 |nvasStat|e(UCanva|
|000003a0| 73 2a 20 43 61 6e 76 61 | 73 29 3b 09 09 09 09 09 |s* Canva|s);.....|
|000003b0| 09 2f 2f 20 52 65 73 74 | 6f 72 65 73 20 74 68 65 |.// Rest|ores the|
|000003c0| 20 73 74 61 74 65 20 6f | 66 20 74 68 65 20 63 61 | state o|f the ca|
|000003d0| 6e 76 61 73 0d 0a 0d 0a | 09 09 76 69 72 74 75 61 |nvas....|..virtua|
|000003e0| 6c 20 55 47 55 49 43 6f | 6d 70 6f 6e 65 6e 74 2a |l UGUICo|mponent*|
|000003f0| 20 55 6e 64 65 72 43 75 | 72 73 6f 72 28 46 4c 4f | UnderCu|rsor(FLO|
|00000400| 41 54 20 4d 6f 75 73 65 | 58 2c 20 46 4c 4f 41 54 |AT Mouse|X, FLOAT|
|00000410| 20 4d 6f 75 73 65 59 29 | 3b 0d 0a 0d 0a 09 09 76 | MouseY)|;......v|
|00000420| 69 72 74 75 61 6c 20 55 | 42 4f 4f 4c 20 4d 6f 75 |irtual U|BOOL Mou|
|00000430| 73 65 4d 6f 76 65 28 49 | 4e 54 20 58 44 65 6c 74 |seMove(I|NT XDelt|
|00000440| 61 2c 20 49 4e 54 20 59 | 44 65 6c 74 61 29 3b 09 |a, INT Y|Delta);.|
|00000450| 09 09 2f 2f 20 54 68 65 | 20 4d 6f 75 73 65 20 68 |..// The| Mouse h|
|00000460| 61 73 20 6d 6f 76 65 64 | 0d 0a 09 09 76 69 72 74 |as moved|....virt|
|00000470| 75 61 6c 20 55 42 4f 4f | 4c 20 4d 6f 75 73 65 50 |ual UBOO|L MouseP|
|00000480| 72 65 73 73 65 64 28 55 | 42 4f 4f 4c 20 49 73 52 |ressed(U|BOOL IsR|
|00000490| 65 70 65 61 74 29 3b 09 | 09 09 09 09 2f 2f 20 54 |epeat);.|....// T|
|000004a0| 68 65 20 4d 6f 75 73 65 | 20 77 61 73 20 70 72 65 |he Mouse| was pre|
|000004b0| 73 73 65 64 0d 0a 09 09 | 76 69 72 74 75 61 6c 20 |ssed....|virtual |
|000004c0| 55 42 4f 4f 4c 20 4d 6f | 75 73 65 52 65 6c 65 61 |UBOOL Mo|useRelea|
|000004d0| 73 65 64 28 29 3b 09 09 | 09 09 09 09 09 09 2f 2f |sed();..|......//|
|000004e0| 20 54 68 65 20 4d 6f 75 | 73 65 20 77 61 73 20 72 | The Mou|se was r|
|000004f0| 65 6c 65 61 73 65 64 0d | 0a 09 09 76 69 72 74 75 |eleased.|...virtu|
|00000500| 61 6c 20 55 42 4f 4f 4c | 20 4d 6f 75 73 65 48 6f |al UBOOL| MouseHo|
|00000510| 76 65 72 28 29 3b 09 09 | 09 09 09 09 09 09 09 2f |ver();..|......./|
|00000520| 2f 20 54 68 65 20 4d 6f | 75 73 65 20 69 73 20 6f |/ The Mo|use is o|
|00000530| 76 65 72 20 61 20 6e 6f | 6e 2d 70 72 65 73 73 65 |ver a no|n-presse|
|00000540| 64 20 74 68 69 6e 67 0d | 0a 0d 0a 09 09 76 69 72 |d thing.|.....vir|
|00000550| 74 75 61 6c 20 55 42 4f | 4f 4c 20 4e 61 74 69 76 |tual UBO|OL Nativ|
|00000560| 65 4b 65 79 54 79 70 65 | 28 42 59 54 45 26 20 69 |eKeyType|(BYTE& i|
|00000570| 4b 65 79 2c 20 54 43 48 | 41 52 20 55 6e 69 63 6f |Key, TCH|AR Unico|
|00000580| 64 65 20 29 3b 09 09 09 | 09 2f 2f 20 48 61 6e 64 |de );...|.// Hand|
|00000590| 6c 65 20 6b 65 79 20 70 | 72 65 73 73 65 73 0d 0a |le key p|resses..|
|000005a0| 09 09 76 69 72 74 75 61 | 6c 20 55 42 4f 4f 4c 20 |..virtua|l UBOOL |
|000005b0| 4e 61 74 69 76 65 4b 65 | 79 45 76 65 6e 74 28 42 |NativeKe|yEvent(B|
|000005c0| 59 54 45 26 20 69 4b 65 | 79 2c 20 42 59 54 45 26 |YTE& iKe|y, BYTE&|
|000005d0| 20 53 74 61 74 65 2c 20 | 46 4c 4f 41 54 20 44 65 | State, |FLOAT De|
|000005e0| 6c 74 61 29 3b 09 2f 2f | 20 48 61 6e 64 6c 65 20 |lta);.//| Handle |
|000005f0| 6b 65 79 20 65 76 65 6e | 74 73 0d 0a 0d 0a 09 09 |key even|ts......|
|00000600| 76 69 72 74 75 61 6c 20 | 76 6f 69 64 20 53 65 74 |virtual |void Set|
|00000610| 44 69 6d 73 28 46 4c 4f | 41 54 20 57 69 64 74 68 |Dims(FLO|AT Width|
|00000620| 2c 20 46 4c 4f 41 54 20 | 48 65 69 67 68 74 2c 20 |, FLOAT |Height, |
|00000630| 46 4c 4f 41 54 20 4c 65 | 66 74 2c 20 46 4c 4f 41 |FLOAT Le|ft, FLOA|
|00000640| 54 20 54 6f 70 29 3b 09 | 2f 2f 20 53 65 74 20 74 |T Top);.|// Set t|
|00000650| 68 65 20 64 69 6d 73 20 | 71 75 69 63 6b 6c 79 0d |he dims |quickly.|
|00000660| 0a 09 09 76 69 72 74 75 | 61 6c 20 76 6f 69 64 20 |...virtu|al void |
|00000670| 20 43 6c 6f 6e 65 44 69 | 6d 73 28 55 47 55 49 43 | CloneDi|ms(UGUIC|
|00000680| 6f 6d 70 6f 6e 65 6e 74 | 2a 20 46 72 6f 6d 29 3b |omponent|* From);|
|00000690| 09 2f 2f 20 43 6c 6f 6e | 65 73 20 74 68 65 20 57 |.// Clon|es the W|
|000006a0| 69 64 74 68 2c 48 65 69 | 67 68 74 2c 20 54 6f 70 |idth,Hei|ght, Top|
|000006b0| 2c 20 4c 65 66 74 20 73 | 65 74 74 69 6e 67 73 0d |, Left s|ettings.|
|000006c0| 0a 0d 0a 09 09 76 69 72 | 74 75 61 6c 20 55 42 4f |.....vir|tual UBO|
|000006d0| 4f 4c 20 53 70 65 63 69 | 61 6c 48 69 74 28 29 3b |OL Speci|alHit();|
|000006e0| 0d 0a 09 09 76 69 72 74 | 75 61 6c 20 76 6f 69 64 |....virt|ual void|
|000006f0| 20 20 4e 61 74 69 76 65 | 49 6e 76 61 6c 69 64 61 | Native|Invalida|
|00000700| 74 65 28 55 47 55 49 43 | 6f 6d 70 6f 6e 65 6e 74 |te(UGUIC|omponent|
|00000710| 2a 20 57 68 6f 29 3b 0d | 0a 20 20 20 20 20 20 20 |* Who);.|. |
|00000720| 20 76 69 72 74 75 61 6c | 20 55 42 4f 4f 4c 20 58 | virtual| UBOOL X|
|00000730| 43 6f 6e 74 72 6f 6c 6c | 65 72 45 76 65 6e 74 28 |Controll|erEvent(|
|00000740| 69 6e 74 20 49 64 2c 20 | 65 58 43 6f 6e 74 72 6f |int Id, |eXContro|
|00000750| 6c 6c 65 72 43 6f 64 65 | 73 20 69 43 6f 64 65 29 |llerCode|s iCode)|
|00000760| 3b 0d 0a 20 20 20 20 20 | 20 20 20 76 69 72 74 75 |;.. | virtu|
|00000770| 61 6c 20 55 42 4f 4f 4c | 20 52 61 77 58 43 6f 6e |al UBOOL| RawXCon|
|00000780| 74 72 6f 6c 6c 65 72 28 | 69 6e 74 20 49 64 2c 20 |troller(|int Id, |
|00000790| 42 59 54 45 26 20 69 4b | 65 79 2c 20 42 59 54 45 |BYTE& iK|ey, BYTE|
|000007a0| 26 20 53 74 61 74 65 2c | 20 46 4c 4f 41 54 20 41 |& State,| FLOAT A|
|000007b0| 78 69 73 29 3b 0d 0a 00 | |xis);...| |
+--------+-------------------------+-------------------------+--------+--------+